package com.MoveEat.items;


import java.text.DateFormat;
import java.util.Calendar;
import java.util.Date;
import java.util.TimeZone;

public class CommentDataType
{
	private int REST_ID;
	private String AUTHOR;
	private String FEEDBACK_TEXT;
	private int USER_ID;
	private String DATE_TIME;
	
	public CommentDataType(int restId, String author, String feedback, int userId){
		REST_ID = restId;
		AUTHOR = author;
		FEEDBACK_TEXT = feedback;
		USER_ID = userId;
		Calendar calendar = Calendar.getInstance();
		calendar.setTime(new Date());
//		Time time = new Time(calendar.getTime().getTime());
		DateFormat df = DateFormat.getTimeInstance();
		df.setTimeZone(TimeZone.getDefault());
		String gmtTime = df.format(new Date());

		DATE_TIME = gmtTime;
	}
}
